﻿using P2P.Stun;
using P2P.Stun.Model;
using System.Configuration;

namespace P2P.StunServer
{
    internal class Program
    {
        private static string _UDPMainServerFirstIP = ConfigurationManager.AppSettings["udp.main.server.first.ip"];
        private static int _UDPMainServerFirstPort = int.Parse(ConfigurationManager.AppSettings["udp.main.server.first.port"]);

        private static string _UDPStunServerIP = ConfigurationManager.AppSettings["udp.stun.server.ip"];
        private static int _UDPStunServerPort = int.Parse(ConfigurationManager.AppSettings["udp.stun.server.port"]);

        static void Main(string[] args)
        {
            var hosts = new Hosts
            {
                UDPMainServerFirstIP = _UDPMainServerFirstIP,
                UDPMainServerFirstPort = _UDPMainServerFirstPort,
           
                UDPStunServerIP = _UDPStunServerIP,
                UDPStunServerPort = _UDPStunServerPort,
            };

            AppBuilder.Configure(hosts).Start();
        }
    }
}
